import fetch from '../utils/fetch';

export function login(username, password) {
    return fetch({
        url: '/auth/cus/login',
        method: 'post',
        data: {
            username,
            password
        }
    });
}

export function logout() {
    return fetch({
        url: '/auth/logout',
        method: 'get'
    });
}



